SpringBoot 统一给URL添加/api前缀
在
src\main\resources目录的配置文件 application.properties 中添加如下配置:server.servlet.contextPath=/api # SpringBoot 2.xserver.contextPath=/api # SpringBoot 1.x
Tomasz Janek
SpringBoot 统一给URL添加/api前缀
src\main\resources目录的配置文件 application.properties 中添加如下配置:server.servlet.contextPath=/api # SpringBoot 2.xserver.contextPath=/api # SpringBoot 1.x